package com.epsoft.odin7cj.flow.model.instance;

import java.io.Serializable;
import java.util.Map;

/**  
 * DESC: 流程实例 
 * @author 胡义振  
 * @date 2018年10月11日  
*/
public class FlowInstance implements Serializable{
	
	private static final long serialVersionUID = -5488775887981281655L;
	
	// 实例ID
	private String instanceId;
	// 
	private String processInstanceId;
	//
	private String rootProcessInstanceId;
	
	private String caseInstanceId;
	// 流程定义ID
	private String definitionId;
	//
	private String businessKey;
	// 启动用户
	private String startUserId;
	
	// 实例参数
	private Map<String, Object> instanceParams;

	// 发布ID
	private String deploymentId;
	
	// 实例开始时间
	private String startTime;
	// 实例结束时间
	private String endTime;
	public String getInstanceId() {
		return instanceId;
	}
	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
	}
	public String getProcessInstanceId() {
		return processInstanceId;
	}
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	public String getRootProcessInstanceId() {
		return rootProcessInstanceId;
	}
	public void setRootProcessInstanceId(String rootProcessInstanceId) {
		this.rootProcessInstanceId = rootProcessInstanceId;
	}
	public String getCaseInstanceId() {
		return caseInstanceId;
	}
	public void setCaseInstanceId(String caseInstanceId) {
		this.caseInstanceId = caseInstanceId;
	}
	public String getDefinitionId() {
		return definitionId;
	}
	public void setDefinitionId(String definitionId) {
		this.definitionId = definitionId;
	}
	public String getBusinessKey() {
		return businessKey;
	}
	public void setBusinessKey(String businessKey) {
		this.businessKey = businessKey;
	}
	public String getStartUserId() {
		return startUserId;
	}
	public void setStartUserId(String startUserId) {
		this.startUserId = startUserId;
	}
	public Map<String, Object> getInstanceParams() {
		return instanceParams;
	}
	public void setInstanceParams(Map<String, Object> instanceParams) {
		this.instanceParams = instanceParams;
	}
	public String getDeploymentId() {
		return deploymentId;
	}
	public void setDeploymentId(String deploymentId) {
		this.deploymentId = deploymentId;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	@Override
	public String toString() {
		return "FlowInstance [instanceId=" + instanceId + ", processInstanceId=" + processInstanceId
				+ ", rootProcessInstanceId=" + rootProcessInstanceId + ", caseInstanceId=" + caseInstanceId
				+ ", definitionId=" + definitionId + ", businessKey=" + businessKey + ", startUserId=" + startUserId
				+ ", instanceParams=" + instanceParams + ", deploymentId=" + deploymentId + ", startTime=" + startTime
				+ ", endTime=" + endTime + "]";
	}
	
}
